package com.hooper.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hooper.hosp.model.order.OrderInfo;
import com.hooper.hosp.model.order.PaymentInfo;
import org.springframework.core.annotation.Order;

import java.util.Map;

/**
 * @author Tim Hooper
 * @version 1.0
 * @time 2022/10/11/21:44
 */
public interface PaymentService extends IService<PaymentInfo> {

    void savePayInfo(OrderInfo order, Integer status);

    void paySuccess(String outTradeNo, Integer status, Map<String, String> result);

    PaymentInfo getPaymentInfo(String outTradeNo, Integer status);

    PaymentInfo getInfoByOrderId(String orderId,Integer payType);
}
